package com.huawei;

/**
 * Created by Z-hong on 2024/7/23.
 */
import java.util.*;
public class HJ69 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int row_1 = scanner.nextInt();
        int col = scanner.nextInt();
        int col_2= scanner.nextInt();
        int arr_1[][]=new int[row_1][col];
        int arr_2[][]=new int[col][col_2];
        for (int i = 0; i < arr_1.length; i++) {
            for (int j = 0; j < arr_1[0].length; j++) {
                arr_1[i][j]=scanner.nextInt();
            }
        }
        for (int i = 0; i < arr_2.length; i++) {
            for (int j = 0; j < arr_2[0].length; j++) {
                arr_2[i][j]=scanner.nextInt();
            }
        }
        int res[][]=new int[row_1][col_2];

        for (int i = 0; i < res.length; i++) {
            for (int j = 0; j < res[0].length; j++) {
                for (int k = 0; k < arr_1[0].length; k++) {
                    res[i][j]+=arr_1[i][k]*arr_2[k][j];
                }
            }
        }
        for (int i = 0; i < res.length; i++) {
            for (int j = 0; j < res[0].length; j++) {
                System.out.print(res[i][j]+" ");
            }
            System.out.println();
        }
    }
}
